home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / CBSA / EDUCATION / WINDOW / h / Template < prev    next >
Text File  |  1998-03-28  |  704b  |  51 lines

  1.  
  2. // ------------------------------
  3. //       Template.h
  4. // ------------------------------
  5.  
  6. #ifndef TEMPLATE_H
  7. #define TEMPLATE_H
  8.  
  9. #include <iostream.h>
  10. #include "WimpError.h"
  11.  
  12. class Template
  13. {
  14.   public:
  15.   
  16.   struct Entry
  17.   {
  18.   int offset ;
  19.   int size ;
  20.   int type ;
  21.   char name[13] ;
  22.   char *data ;                  // window data
  23.   Entry *next ;
  24.   };
  25.   
  26.   struct DataFont
  27.   {
  28.     xsize;
  29.     ysize;
  30.     char name[48];
  31.   };
  32.   
  33.   private:
  34.   
  35.   Entry *templates;
  36.   int font_offset;
  37.   DataFont font;
  38.   
  39.   public:
  40.   
  41.   Template (char *);
  42.   Template ();
  43.   ~Template();
  44.   Entry & operator[] (const char *) const;
  45.   void operator << (const Entry &);
  46.   void save(char *);
  47.   void list(ostream & = cout);
  48. };
  49.  
  50. #endif
  51.